package com.edu.service;

import com.edu.dao.DepartmentMapper;
import com.edu.dao.MemberMapper;
import com.edu.pojo.Department;

import java.util.List;

public class DepartmentServiceImpl implements DepartmentService{
    private DepartmentMapper departmentMapper;

    public void setDepartmentMapper(com.edu.dao.DepartmentMapper departmentMapper)
    {
        this.departmentMapper = departmentMapper;
    }

    public List<Department> getAllDepartment(){
        return departmentMapper.getAllDepartment();
    }

    public String getNameByID(int id)
    {
        return departmentMapper.getNameByID(id);
    }

    public int getIdByName(String name)
    {
        return departmentMapper.getIdByName(name);
    }
}
